package com.medical.mapi.mapper;

import com.medical.mapi.model.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * Created by junzi on 2016/10/17.
 */
@Mapper
public interface UserMapper {
    @Select("SELECT * FROM user")
    List<User> selectList();

    @Select("SELECT * FROM user where id=#{id}")
    User selectById(@Param("id")Long id);

}
